package com.hex.es.service;

import com.hex.es.annotation.EsBuildParamTypeInfo;
import org.elasticsearch.index.query.BoolQueryBuilder;
import org.springframework.data.elasticsearch.core.query.NativeSearchQueryBuilder;

/**
 * @description: es查询参数构建接口
 * @author: Hex
 * @date: 2019/11/20 16:29
 */
public interface ParamBuildInterface {

    /**
     * 参数构建
     * @param key
     * @param value
     * @param boolQueryBuilder
     * @param searchQueryBuilder
     * @param esBuildParamTypeInfo
     */
    void paramBuild(Object key, Object value, BoolQueryBuilder boolQueryBuilder, NativeSearchQueryBuilder searchQueryBuilder, EsBuildParamTypeInfo esBuildParamTypeInfo);
}
